<?php
class VInputTextArea extends VInput {
	protected	$col;
	protected	$lin;
	public function __construct($nome, $valor='', $label='', $col='', $lin ='', $tag=''){
		$this->nome 	= $nome;
		$this->valor	= $valor;
		$this->label 	= empty($label)?$nome:$label;
		$this->tag		= $tag;
		$this->col		= $col;
		$this->lin		= $lin;
	}

	public function __toString(){
		$n	  = $this->nome;
		$v	  = $this->valor;
		$c	  = $this->col;
		$r	  = $this->lin;
		$l	  = ucfirst($this->label) . ":";
		$t	  = $this->tag;
		$html = "<label>\n" .
				"\t<span>$l</span>\n" .
                "</label>\n" .
				"\t<textarea class=\"input-text\" name=\"$n\" id=\"$n\" cols=\"$c\" rows=\"$r\" $t />$v</textarea>\n" ;
				
		return $html;
	}
}

?>